package com.winchain.chainbill.asset.biz.query.vo;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

public class Assets {
	private BigDecimal amount;
	private Map<String, Asset> assets;

	public BigDecimal getAmount() {
		return this.amount;
	}

	public void setAmount(BigDecimal amount) {
		this.amount = amount;
	}

	public Map<String, Asset> getAssets() {
		return this.assets;
	}

	public void setAssets(Map<String, Asset> assets) {
		this.assets = assets;
	}

	public void addAsset(Asset asset) {
		if (this.assets == null) {
			this.assets = new HashMap();
		}
		this.assets.put(asset.getType(), asset);
	}
}
